﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TSL.Common
{
    public class ConvertTo
    {
        public static string String(string txtString, int num)
        {
            return string.Format("{0:N" + num + "}", Convert.ToDecimal(txtString));
        }

        public static string String(decimal txtString, int num)
        {
            return string.Format("{0:N" + num + "}", txtString);
        }
    }
}
